home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Free Download Manager / fdminst.exe / {app} / player.swf / scripts / __Packages / mx / utils / Delegate.as
Encoding:
Text File  |  2012-08-12  |  555 b   |  26 lines

  1. class mx.utils.Delegate extends Object
  2. {
  3.    var func;
  4.    function Delegate(f)
  5.    {
  6.       super();
  7.       this.func = f;
  8.    }
  9.    static function create(obj, func)
  10.    {
  11.       var _loc2_ = function()
  12.       {
  13.          var _loc2_ = arguments.callee.target;
  14.          var _loc3_ = arguments.callee.func;
  15.          return _loc3_.apply(_loc2_,arguments);
  16.       };
  17.       _loc2_.target = obj;
  18.       _loc2_.func = func;
  19.       return _loc2_;
  20.    }
  21.    function createDelegate(obj)
  22.    {
  23.       return mx.utils.Delegate.create(obj,this.func);
  24.    }
  25. }
  26.